<h1>Listado de Asesores</h1>
<?php
    echo $this->html->link('Agregar Asesor', array('action'=>'add'));

?>
<table>
        <tr>
                <th>Nombre</th>
                <th>IdAsesor</th>
                <th>Celular</th>
                <th>Correo</th>
                <th>CodigoPlanta</th>
                <th>Acciones</th>
        </tr>
<?php foreach($asesores as $asesor):?>
        <tr>
                <td> <?php echo $asesor['Asesor']['nombre'];?></td>
                <td> <?php echo $asesor['Asesor']['id'];?></td>
                <td> <?php echo $asesor['Asesor']['celular'];?></td>
                <td> <?php echo $asesor['Asesor']['correo'];?></td>
                <td> <?php echo $asesor['Asesor']['codPlanta'];?></td>   
                <td>
<?php echo $this->Html->Link( 'Editar', array('action'=>'edit',$asesor ['Asesor']['id']));?>                
<?php echo $this->Form->postLink('Eliminar', array('action'=>'delete', 
            $asesor['Asesor']['id']), array('confirm' =>'Realmente desea eliminar este asesor'));
            ?>
            </td>
        </tr>
<?php endforeach;?>
</table>

